// stairs
// using stairs takes you to another area
// Cell 0 - Zone to take to
// Cell 1 - Direction to enter it from
// Cell 2,3 - A stuff done flag. If both 0, this flag must be nonzero to let party use stairs/
// Cell 4 - If the flag prevent party from using boat, starts a convo at this node.
// Cell 5 - World map to swap to, leave at 9 for no switch

beginobjectscript; // talking object

variables;

body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	break;

beginstate USE_STATE;
	if ((get_memory_cell(2) > 0) || (get_memory_cell(3) > 0)) {
		if (get_sdf(get_memory_cell(2),get_memory_cell(3)) == 0) {
			begin_talk_mode(get_memory_cell(4));
			}
		}

	change_level(get_memory_cell(0),get_memory_cell(1));
	if (get_memory_cell(5) != 9)
		change_world_map(get_memory_cell(5));
break;
